package com.dyj.tiktok.handler;

import com.dyj.common.client.TikTokAuthClient;
import com.dyj.common.config.AgentConfiguration;
import com.dyj.spring.utils.SpringUtils;
import com.dyj.tiktok.client.UserClient;
import com.dyj.tiktok.client.VideoClient;

public abstract class AbstractTikTokHandler {

    protected final AgentConfiguration agentConfiguration;

    public AbstractTikTokHandler(AgentConfiguration agentConfiguration) {
        this.agentConfiguration = agentConfiguration;
    }

    protected TikTokAuthClient getTikTokAuthClient() {
        return SpringUtils.getBean(TikTokAuthClient.class);
    }

    protected UserClient getUserClient() {
        return SpringUtils.getBean(UserClient.class);
    }

    protected VideoClient getVideoClient() {
        return SpringUtils.getBean(VideoClient.class);
    }

}
